package com.tedu._01mvcboot01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class UserController {
    @RequestMapping("/v1/user/login")
    @ResponseBody
    public String login(String username,String password){

        return username+":"+password;
    }
    @RequestMapping("/v1/user/reg")
    @ResponseBody
    public String reg(){
        return "很抱歉,用户名被占用";
    }
}
